//创建多级路径
var fs = require("fs");
var path  = require("path"); 
function mkdirsSync(dirname) {
    if (!fs.existsSync(dirname)) {
        if (mkdirsSync(path.dirname(dirname))) {
            fs.mkdirSync(dirname);
        }
    }
    return true
}
// mkdirsSync("./www.baidu.com/img/superlogo_c4d7df0a003d3db9b65e9ef0fe6da1ec.png")